package com.bjpowernode;

import com.bjpowernode.ba03.SomeService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        String config = "ApplicationContext.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        SomeService someService = (SomeService) context.getBean("someService");
        String result = someService.doFirst("张三", 23);
        System.out.println("result = " + result);
    }
}
